package com.wcn.util;

/**
 * @author 王超南
 * @description 学习 Object... args
 * @date 2018/12/11 17:33
 **/
public class ObjectUtils {

    /**
     * 功能描述 :  (Object... args)测试
     *
     * @param args
     * @return {@link void}
     * @throws
     * @author 王超南
     * @date 2018/12/11 17:42
     */
    public void Test(Integer... args) {
        for (Integer i : args) {
            System.out.println(i + ",");
        }
    }

    /**
     * 功能描述 :(Object[] args)测试
     *
     * @param args
     * @return {@link void}
     * @throws
     * @author 王超南
     * @date 2018/12/11 17:43
     */
    public void f(Integer[] args) {
        for (Integer i : args) {
            System.out.println(i + ";");
        }
    }

    public static void main(String[] args) {
        ObjectUtils o = new ObjectUtils();
        o.Test(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
        Integer[] a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
        o.f(a);
    }
}
